
package org.codebase.alibaba.customer.controller;

import org.codebase.common.rpc.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class DemoController {

	@Autowired
	DemoService demoService;
	
	@RequestMapping("/")
	@ResponseBody
	public String sayHello(){
		return demoService.sayHello("张三");
	}
}
